feat: add a FlowChat turn navigation rail - #1937
Merged
Merged
Conversation
- Replace scrollbar anchors and header turn controls with a left-side rail - Highlight every turn intersecting the readable viewport - Keep rail scrolling and tooltips independent from the chat scroller - Clean up navigation state, tests, docs, and localized labels
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Replace FlowChat's scrollbar-aligned message anchors and header turn controls with a dedicated left-side turn navigation rail.
The new rail:
Type and Areas
Type:
Areas:
Motivation / Impact
The previous implementation coupled turn navigation to the right-side scrollbar and duplicated navigation controls in FlowChatHeader.
This change moves arbitrary turn navigation into a dedicated visual rail, removes the old
ScrollAnchorimplementation, and removes the header turn list and previous/next buttons.For users, turn navigation is now consistently available from the left rail without obscuring or modifying the native scrollbar.
For developers:
scrollTop.Verification
pnpm run type-check:webpnpm run i18n:auditpnpm --dir src/web-ui run lintprefer-constwarning remains inDispatchJobObserver.ts:689.pnpm --dir src/web-ui run test:run src/flow_chat/components/modern/FlowChatHeader.test.tsx src/flow_chat/components/modern/FlowChatTurnRail.test.tsx src/flow_chat/components/modern/ModernFlowChatContainer.history-state.test.tsx src/flow_chat/components/modern/VirtualMessageList.session-boundary.test.tsxgit diff --cached --checkReviewer Notes
FlowChatTurnRailis mounted outside the FlowChat scroller and cannot become an outer viewport writer.ScrollAnchorcomponent, preview logic, scroller listeners, and scrollbar-hover styling were deleted.Checklist